﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="UpdateTeam.aspx.cs" Inherits="SD.UI.UpdateTeam" Title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            height: 23px;
        }
        .style2
        {
            height: 30px;
        }
        .style3
        {
            width: 216px;
        }
        .style4
        {
            height: 23px;
            width: 216px;
        }
        .style5
        {
            height: 30px;
            width: 216px;
        }
        .style6
        {
            height: 26px;
        }
        .style7
        {
            width: 216px;
            height: 26px;
        }
        .style8
        {
            height: 42px;
        }
        .style9
        {
            width: 216px;
            height: 42px;
        }
        .style10
        {
            height: 36px;
        }
        .style11
        {
            width: 216px;
            height: 36px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td colspan="2">
                    <div>
                        <h1>
                            Team Details
                        </h1>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <div style="float: right">
                        <asp:Button ID="btnInActive" runat="server" Text="In-active" OnClick="btnInActive_Click"
                            CausesValidation="False" CssClass="Button" />
                        <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" 
                            style="height: 26px" CssClass="Button"/>
                        <asp:Button ID="btnBack" runat="server" Text="Back" CausesValidation="False" 
                            onclick="btnBack_Click" CssClass="Button" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:TabContainer ID="TabContainer1" runat="server" 
             OnActiveTabChanged="TabContainer1_ActiveTabChanged" ActiveTabIndex="0">
            <asp:TabPanel ID="tabsDetail1" runat="server">
                <HeaderTemplate>
                    Details
                </HeaderTemplate>
                <ContentTemplate>
                    <div>
                        <asp:Panel ID="PanelDetails1" runat="server" Width="1180px">
                            <div>
                                <table width="100%">
                                    <tr>
                                        <td>
                                            <div>
                                                <asp:Label ID="lbOrgName" runat="server" Text="Team Name"></asp:Label><asp:Label
                                                    ID="lbValidOrgName" runat="server" BorderStyle="None" ForeColor="Red" Text="*"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxDirectorateName" runat="server" Width="250px"></asp:TextBox><asp:RequiredFieldValidator
                                                    ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxDirectorateName"
                                                    ErrorMessage="Please input the organization name."> * </asp:RequiredFieldValidator></div>
                                        </td>
                                        <td class="style3">
                                            <div>
                                                <asp:Label ID="lbTypeOfBussiness" runat="server" Text="Type Of Bussiness"></asp:Label><asp:Label
                                                    ID="lbValidTypeOfBussiness" runat="server" ForeColor="Red" Text="*"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div onclick="ShowSearchBussinessType()">
                                                <asp:TextBox ID="tbxTypeOfBussiness" runat="server" Enabled="False" Width="250px"></asp:TextBox><asp:RequiredFieldValidator
                                                    ID="RequiredFieldValidator6" runat="server" ControlToValidate="tbxTypeOfBussiness"
                                                    ErrorMessage="Please input the type of bussiness."> * </asp:RequiredFieldValidator><asp:LinkButton
                                                        ID="linkTypeOfBussiness" runat="server" Text="Lookup" CausesValidation="False"
                                                        OnClick="linkTypeOfBussiness_Click"></asp:LinkButton></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2">
                                            <div>
                                                <asp:Label ID="lbOrgShortDescription" runat="server" 
                                                    Text="Team Short Description"></asp:Label></div>
                                        </td>
                                        <td rowspan="2">
                                            <div>
                                                <asp:TextBox ID="tbxDirShortDes" runat="server" TextMode="MultiLine" Width="250px"></asp:TextBox></div>
                                        </td>
                                        <td class="style4">
                                            <div>
                                                <asp:Label ID="lbSICCode" runat="server" Text="SIC Code"></asp:Label></div>
                                        </td>
                                        <td class="style1">
                                            <div>
                                                <asp:TextBox ID="tbxSICCode" runat="server" Enabled="False" Width="250px"></asp:TextBox></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style3">
                                            &#160;&nbsp;
                                        </td>
                                        <td>
                                            <div class="navi">
                                                <div>
                                                </div>
                                                <div onclick="ShowSearchBussinessType()">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div>
                                                <asp:Label ID="lbLeadContact" runat="server" Text="Lead Contact"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div class="navi">
                                                <div>
                                                    <asp:TextBox ID="tbxLeadContact" runat="server" Enabled="False" Width="250px"></asp:TextBox></div>
                                                <div onclick="ShowLeadContacts()">
                                                    <asp:LinkButton ID="linkLookup" runat="server" Text="Lookup" CausesValidation="False"
                                                        OnClick="linkLookup_Click"></asp:LinkButton></div>
                                            </div>
                                        </td>
                                        <td class="style3">
                                            <div>
                                                <asp:Label ID="lbOrgFullDescription" runat="server" Text="Organization Full Description"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxDirFullDescription" runat="server" TextMode="MultiLine" Width="250px"></asp:TextBox></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style2" colspan="2">
                                            <div style="float: left; width: 176px;">
                                                <asp:Label ID="lbCoppy" Text="Coppy Address from" runat="server"></asp:Label></div>
                                            <div style="float: left; padding-right: 45px">
                                                <asp:RadioButton ID="rbtOrganization" runat="server" Text="Organization" GroupName="Check"
                                                    AutoPostBack="True" OnCheckedChanged="rbtOrganization_CheckedChanged" /></div>
                                            <div>
                                                <asp:RadioButton ID="rbtParent" runat="server" Text="Parent" GroupName="Check" AutoPostBack="True"
                                                    OnCheckedChanged="rbtParent_CheckedChanged" /></div>
                                        </td>
                                        <td class="style5">
                                            <div>
                                                <asp:Label ID="lbPhoneNumber" runat="server" Text="Phone Number"></asp:Label></div>
                                        </td>
                                        <td class="style2">
                                            <asp:TextBox ID="tbxPhoneNumber" runat="server" Width="250px"></asp:TextBox><asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator5" runat="server" ControlToValidate="tbxPhoneNumber"
                                                ErrorMessage="Please input the phone number."> * </asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                    ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbxPhoneNumber"
                                                    ErrorMessage="Invalid phone number." ValidationExpression="\d{10}">*</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div>
                                                <asp:Label ID="lbAddressLine1" runat="server" Text="Address Line 1"></asp:Label><asp:Label
                                                    ID="lbValidAddLine1" runat="server" ForeColor="Red" Text="*"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxAddressLine1" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox><asp:RequiredFieldValidator
                                                    ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbxAddressLine1"
                                                    ErrorMessage="Please input the address line 1."> * </asp:RequiredFieldValidator></div>
                                        </td>
                                        <td class="style3">
                                            <div>
                                                <asp:Label ID="lbFax" runat="server" Text="Fax"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxFax" runat="server" Width="250px"></asp:TextBox></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div>
                                                <asp:Label ID="lbAddressLine2" runat="server" Text="Address Line 2"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxAddressLine2" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox><div>
                                                </div>
                                            </div>
                                        </td>
                                        <td class="style3">
                                            <asp:Label ID="lbEmail" runat="server" Text="Email"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbxEmail" runat="server" Width="250px"></asp:TextBox><asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator7" runat="server" ControlToValidate="tbxEmail" Display="Dynamic"
                                                ErrorMessage="Please input email.">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                                    ID="RegularExpressionValidator3" runat="server" ControlToValidate="tbxEmail"
                                                    Display="Dynamic" ErrorMessage="The email is not right format." ValidationExpression="^[a-z][a-z|0-9|]*([_][a-z|0-9]+)*([.][a-z|0-9]+([_][a-z|0-9]+)*)?@[a-z][a-z|0-9|]*\.([a-z][a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$">*</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div>
                                                <asp:Label ID="lbAddressLine3" runat="server" Text="Address Line 3"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxAddressLine3" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox></div>
                                        </td>
                                        <td class="style3">
                                            <div>
                                                <asp:Label ID="lbWebAddress" runat="server" Text="Web Address"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxWebAddress" runat="server" Width="250px"></asp:TextBox></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style10">
                                            <div>
                                                <asp:Label ID="lbPostcode" runat="server" Text="Postcode"></asp:Label><asp:Label
                                                    ID="lbValidPostcode" runat="server" ForeColor="Red" Text="*"></asp:Label></div>
                                        </td>
                                        <td class="style10">
                                            <div class="navi">
                                                <div>
                                                    <asp:TextBox ID="tbxPostcode" runat="server" Enabled="False" Width="250px"></asp:TextBox></div>
                                                <div onclick="ShowSearchAddress()">
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="tbxPostcode"
                                                        ErrorMessage="Please input the postcode."> * </asp:RequiredFieldValidator><asp:LinkButton
                                                            ID="linkPostcode" runat="server" Text="Lookup" CausesValidation="False" OnClick="linkPostcode_Click"></asp:LinkButton></div>
                                            </div>
                                        </td>
                                        <td class="style11">
                                            <div>
                                            </div>
                                        </td>
                                        <td class="style10">
                                            <div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style8">
                                            <div>
                                                <asp:Label ID="lbCity" runat="server" Text="Town/Village/City"></asp:Label></div>
                                        </td>
                                        <td class="style8">
                                            <div>
                                                <asp:TextBox ID="tbxCityTown" runat="server" Width="250px" Enabled="False"></asp:TextBox></div>
                                        </td>
                                        <td class="style9">
                                            <div>
                                            </div>
                                        </td>
                                        <td class="style8">
                                            &#160;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="style6">
                                            <div>
                                                <asp:Label ID="lbCounty" runat="server" Text="County"></asp:Label></div>
                                        </td>
                                        <td class="style6">
                                            <div>
                                                <asp:TextBox ID="tbxCounty" runat="server" Width="250px" Enabled="False"></asp:TextBox></div>
                                        </td>
                                        <td class="style7">
                                        </td>
                                        <td class="style6">
                                            <div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div>
                                                <asp:Label ID="lbNationCountry" runat="server" Text="Nation/Country"></asp:Label></div>
                                        </td>
                                        <td>
                                            <div>
                                                <asp:TextBox ID="tbxNationCountry" runat="server" Width="250px" ReadOnly="True" Enabled="False"></asp:TextBox></div>
                                        </td>
                                        <td class="style3">
                                            <div>
                                            </div>
                                        </td>
                                        <td>
                                            <div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="3">
                                            <div>
                                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </div>
                </ContentTemplate>
            </asp:TabPanel>
         </asp:TabContainer>
         <table>
            <tr>
                <td>
                    <asp:HiddenField ID="txtContactID" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="txtAddressID" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="txtBussinessID" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hdfContactName" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfLine1" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfLine2" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hdfLine3" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfPostCode" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfTown" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HiddenField ID="hdfCounty" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfCountry" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfBussiness" runat="server" />
                </td>
                <td>
                    <asp:HiddenField ID="hdfSicCode" runat="server" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
